<template>
	<view class="container">
		<view class="btns" @click="gotoPage('/TUIKit/components/TUIChat/index')">
			发送会话
		</view>
	</view>
</template>

<script>
	import {
		TUIConversationService,
	} from "@tencentcloud/chat-uikit-engine";

	export default {
		methods: {
			gotoPage(url) {
				uni.navigateTo({
					url,
					success: (res) => {
						// 发送 1V1 请求
						TUIConversationService.switchConversation('C2Cuser1')
					}
				})
			}
		}
	}
</script>

<style>
</style>